home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
src
/
editors
/
AME
/
Rexx
/
runbuf.ame
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-02-01
|
413 b
|
20 lines
/* $VER: Runbuf 37.1 (21.2.93) : run external program on a buffer */
options results
'getfilepath'
oldname = result
name = "T:" || address() || ".tmp"
saveas name
parse arg program line
if program = "" then do
requeststring "Program: "
if rc ~= 0 then exit
program = result
end
address command program || ' ' || name || ' ' || line
address command 'delete >NIL: ' || name
setfilepath oldname